# coding:utf-8
from django.shortcuts import render
from gaoxiaoIT import  data

def home(request):
     c=data.Person.objects.all()
     return render(request, "admin/admin.html", {'centent':c})


def edit(request):
     if request.method == 'GET':
         itemid = int(request.GET.get('id'))
         i=data.Person.objects.get(id=itemid)
         return render(request, "admin/edit.html", {'item':i})